﻿using System.ComponentModel.DataAnnotations;

namespace ParkManagement
{
    /// <summary>
    /// 纠错添加数据传输对象
    /// </summary>
    public class CreateCorrectDto
    {
        [Display(Name = "停车场名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Name { get; set; }

        [Display(Name = "纠错照片")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Photo { get; set; }

        [Display(Name = "问题描述")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Content { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }

        [Display(Name = "停车位数")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int SpotCount { get; set; }
    }
}